package com.qf.web;

import com.qf.dao.UserDao;
import com.qf.service.OrderService;
import com.qf.service.UserService;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;

@Controller
public class UserController2 {


    public static void main(String[] args) {
        ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("spring.xml");

        SqlSessionFactory ssf = ioc.getBean("ssf",SqlSessionFactory.class);

        SqlSession sqlSession = ssf.openSession();
        System.out.println(sqlSession);
    }
}
